home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 186 / how2mrge / how2merg.doc < prev    next >
Text File  |  1988-05-18  |  2KB  |  38 lines

  1. How  To  Merge Multiple Pic_clip .CL1 Files into a  Single  Binary 
  2. File:
  3.  
  4. I  do  a  lot  of programming  involving  little  clips  of  Degas 
  5. pictures,  using  the  picture-clipping utility  PIC_CLIP  by  Jim 
  6. Luczak.   Sometimes I have as many as 40 or 50 little pictures  to 
  7. load off disk.   Loading pictures takes time, and loading multiple 
  8. pictures takes even more time...The opening and closing of a small 
  9. file takes the most time--not the actual reading of the data.   In 
  10. order  to minimize loading time in my programs,  I asked  Jim  for 
  11. some  help  in creating a single binary file  from  multiple  .CL1 
  12. files.   He  generously provided most of the significant  code  in 
  13. these demos.
  14.  
  15. This is a two-part demo, including two .BAS programs and utilizing 
  16. seven little picture clips created with PIC_CLIP and  DEGAS.   For 
  17. convenience,  I used picture clips from a rather stupid program of 
  18. mine called KIDPOTATO.  
  19.  
  20. To witness the merging routine,  LOAD and RUN HOW2MERG.BAS.   This 
  21. program  will  create  a single file from  the  seven  clip  files 
  22. included in the .ARC.   The new file will be called  SMALLPOT.DAT.  
  23. Notice  that  each clip becomes an element in an  array,  and  the 
  24. entire array is contained in the new data file.
  25.  
  26. Then LOAD and RUN CLIPSAMP.BAS.   I'm sorry, but this program only 
  27. functions   in  low  resolution.    You  can  still  examine   the 
  28. methodology  of the programming if you have a monochrome  monitor, 
  29. but  don't bother to RUN it...The Procedure Load_littlepics  loads 
  30. each  of the elements in the array from the new data  file.   Then 
  31. the program will display each of the items (actually,  in  reverse 
  32. order)  with a brief pause between each clip placement.   
  33.  
  34. Hope this helps!  Enjoy your clipping!
  35.  
  36. D.A. Brumleve
  37.  
  38.